function login() {
    var adminName=$("#adminName").val()
    var adminPass=$("#adminPass").val();
    if(adminName==null||adminName==""||adminPass==null||adminPass==""){
        alert("请填写完整")
    }else {
        var data={adminName:adminName,adminPass:adminPass}
        console.log(data)
        $.ajax({
            url: "adminUser/doLogin",
            method: "Post",
            data: data,
            dataType: "json",
            success: function(data) {
                if(data.code==200){
                    location.href="main"
                }else {
                    alert(data.msg+data.data)
                }
            },
            error: function(data) {
                alert("服务器异常")
            }
        });
    }
}
